// 通过酒店ID获取房型列表信息
export function getHomelList (options) {
  return window.fetch({
    method: 'POST',
    url: '/room/list',
    data: options
  })
}
// 新增房型
export function addRoom (options) {
  return window.fetch({
    method: 'POST',
    url: '/room/add',
    data: options
  })
}
// 修改房型信息
export function updateRoomInfo (options) {
  return window.fetch({
    method: 'POST',
    url: '/room/update',
    data: options
  })
}

// 获取房型所有信息
export function getRoomInfo (options) {
  return window.fetch({
    method: 'POST',
    url: '/room/info',
    data: options
  })
}
// 获取所有床型列表
export function getBed (options) {
  return window.fetch({
    method: 'POST',
    url: '/bed/all',
    data: options
  })
}

// 获取房间类型
export function getRoomtype (options) {
  return window.fetch({
    method: 'GET',
    url: `/common/dic/list/${options}`
  })
}
// /room/facilities/update

// 更新基础房型设施
export function updateFacilities (options) {
  return window.fetch({
    method: 'POST',
    url: `/room/facilities/update`,
    data: options
  })
}




//  房型相册集
export function getRoomPicByid (data) {
  return window.fetch({
    method: 'POST',
    url: `/qn/room/list`,
    data: data
  })
}
// 房型相册（新增/更新）
export function addupRoomlPic (data) {
  return window.fetch({
    method: 'POST',
    url: `/qn/room/addup`,
    data: data
  })
}

// 删除房型相册
export function deleteRoomPictureList (id) {
  return window.fetch({
    method: 'POST',
    url: `/qn/room/delete`,
    data: id
  })
}

//  房型图片集 
export function getImglist (id) {
  return window.fetch({
    method: 'POST',
    url: `/qn/room/imglist`,
    data: id
  })
}

//  房型图片上传
export function imageAdd (data) {
  return window.fetch({
    method: 'POST',
    url: `/qn/room/add`,
    data: data
  })
}

